/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package POJO;

import java.io.Serializable;

/**
 *
 * @author nhóm 1 - 10HT
 */
public class KhachHang implements Serializable {

	private int _maKH;
	private String _tenKH;
	private String _diaChi;
	private String _dienThoai;
        private int _soLuong;

    public int getSoLuong() {
        return _soLuong;
    }

    public void setSoLuong(int _soLuong) {
        this._soLuong = _soLuong;
    }

    
	public KhachHang(KhachHang tmp) {
		this._maKH = tmp._maKH;
		this._tenKH = tmp._tenKH;
		this._diaChi = tmp._diaChi;
		this._dienThoai = tmp._dienThoai;
	}

	public KhachHang() {
		this._maKH = 0;
		this._tenKH = "";
		this._diaChi = "";
		this._dienThoai = "";
	}

	public KhachHang(int _maKH) {
		this._maKH = _maKH;
		this._tenKH = "";
		this._diaChi = "";
		this._dienThoai = "";
	}

	public KhachHang(int _maKH, String _dienThoai) {
		this._maKH = _maKH;
		this._tenKH = "";
		this._diaChi = "";
		this._dienThoai = _dienThoai;
	}
        public KhachHang(int _maKH, String _tenKH, String _dienThoai ) {
		this._maKH = _maKH;
		this._tenKH = _tenKH;		
		this._dienThoai = _dienThoai;                
	}
        public KhachHang(int _maKH, String _tenKH, String _dienThoai , int _soLuong) {
		this._maKH = _maKH;
		this._tenKH = _tenKH;		
		this._dienThoai = _dienThoai;
                this._soLuong = _soLuong;
	}
	public KhachHang(int _maKH, String _tenKH, String _diaChi, String _dienThoai) {
		this._maKH = _maKH;
		this._tenKH = _tenKH;
		this._diaChi = _diaChi;
		this._dienThoai = _dienThoai;
	}

	public int getMaKH() {
		return _maKH;
	}

	public void setMaKH(int _maKH) {
		this._maKH = _maKH;
	}

	public String getTenKH() {
		return _tenKH;
	}

	public void setTenKH(String _tenKH) {
		this._tenKH = _tenKH;
	}

	public String getDiaChi() {
		return _diaChi;
	}

	public void setDiaChi(String _diaChi) {
		this._diaChi = _diaChi;
	}

	public String getDienThoai() {
		return _dienThoai;
	}

	public void setDienThoai(String _dienThoai) {
		this._dienThoai = _dienThoai;
	}

	@Override
	public String toString() {
		return this._tenKH;
	}
}
